import { lazy } from "react";
const ly=[
    {
        path:"/home",
    component:lazy(()=>import('../home/Home')),
    children:[
        {path:"/home/index",
        component:lazy(()=>import('../home/home/Index')),
        title:"首页"
        },
        {path:"/home/fl",
        component:lazy(()=>import('../home/home/Fl')),
        title:"分类"
        },
        {path:"/home/shop",
        component:lazy(()=>import('../home/home/Shop')),
        title:"购物车"
        },
        {path:"/home/my",
        component:lazy(()=>import('../home/home/My')),
        title:"我的"
        },
        {path:"/home",
      to:"/home/index"
        },
    ]
    },
    {
        path:"/xq/:id",
        component:lazy(()=>import('../home/Xq')),
        title:"详情"
    },
    {
        path:"/",
        to:"/home"
    }
]

export default ly